#if !defined __NoxTimerAPPAPI_H__
#define __NoxTimerAPPAPI_H__

#ifdef __cplusplus 
extern "C" 
{
#endif	
	
	//Get last error
	long NoxGetLastError();
	
	//Find all connected keys in and get their handles
	long NoxFind(long appID, long * keyHandles, long * keyNumber);
	
	long NoxGetUID(long keyHandle, char * UID);
	
	//Open the key with user pin
	long NoxOpen(long keyHandle, char * userPin);
	
	//Read data buffer of the key
	long NoxReadStorage(long keyHandle, unsigned char * pBuffer);
		
	///Read Memory
	long NoxReadMem(long keyHandle, unsigned char * pBuffer);
	
	//Write Memory
	long NoxWriteMem(long keyHandle, unsigned char * pBuffer);
	
	//Close 
	long NoxClose(long keyHandle);

	long NoxGetExpiryDateTime(long nKeyHandle, long * tmMode,
		long *endYear, long *endMonth, long *endDay, long *endHour, long *endMin);
	
	long NoxGetRemnantCount(long nKeyHandle, long * nRemnant, long * nMax, long * mode);
	
	//Request file
	long NoxGenRequestFile (long nKeyHandle, char * szReqInfo, char * szReqFile );
	
	//Unlock 
	long NoxUnlock (long nKeyHandle, char *szUnlockFile);
	
	//Release all Resources
	long NoxFreeResources();

#ifdef __cplusplus 
}

#endif



#endif